#include "Connection.h"

#include "IBuffer.h"

class Client
{
  public:
  Client(IBuffer *buffer, unsigned int bufferReadSize);
  ~Client();
  int Connect(std::string adress, int port);
  int Disconnect();
  int Send(void *buff, unsigned int len);
  
  private:
  static void runSelectReceive(void *data);
  Connection *_connection;
  IBuffer *_buffer;
  unsigned int _bufferReadSize;
};
